package com.asen.alibaba.feign;

import com.asen.alibaba.feign.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("producer001")
public interface UserControllerFeign {

    @RequestMapping("user/list")
    List<User> list();

    @RequestMapping("user/save")
    User save(User user);

    @RequestMapping("user/getById/{id}")
    User getById(@PathVariable("id") String id);

}
